package com.lct.javabean;
//实体类
//类中只有私有的成员变量，且为他们提供set,get方法，必须提供无参构造器
//仅仅是一个用来保存数据的java类，可以用它创建对象，保存某个事物的数据
public class Student {
    //1.私有成员变量
    private String name;
    private char sex;
    private double height;
    private double score;
    //2.提供公用的无参构造器（默认存在）


    public Student() {
    }

    public Student(String name, char sex, double height, double score) {
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.score = score;
    }


    //3.提供get、set方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public double getScore() {
        return score;
    }
}
